#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
Test()
{
	int a[] = { 3,5,4,2,6,1,7,9,8 };
	HP h;
	HeapInit(&h);
	for (int i = 0; i < sizeof(a)/sizeof(int); i++)
	{
		HeapPush(&h, a[i]);
	}
	printf("%zd\n", HeapSize(&h));
	while (!HeapEmpty(&h))
	{
		printf("%d ", HeapTop(&h));
		HeapPop(&h);
	}
	printf("\n");
	printf("%zd\n", HeapSize(&h));
}
int main()
{
	Test();
	return 0;
}